package topcoder.srm587;

public class InsertZ {
	public String canTransform(String init, String goal)
	{
		goal = goal.replaceAll("z", "");
		if(init.equals(goal))
			return "Yes";
		return "No";
	}
	public static void main(String[] args) {
		InsertZ iz = new InsertZ();
		System.out.println(iz.canTransform("opdlfmvuicjsierjowdvnx", "zzopzdlfmvzuicjzzsizzeijzowvznxzz"));
		
	}

}
